
var inputs = document.querySelectorAll('input')
var loginBtn = document.querySelector('button')
console.log(loginBtn);
loginBtn.onclick = () => {
    //发起登录请求
    axios.post('/user/login', { phone: inputs[0].value, pass: inputs[1].value }).then((res) => {
        console.log(res.data);
    })
}
